package com.project.communitymanagement.service.impl;

import com.project.communitymanagement.common.BaseServiceImpl;
import com.project.communitymanagement.entity.TbVisitor;
import com.project.communitymanagement.mapper.TbVisitorMapper;
import com.project.communitymanagement.service.TbVisitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: epidemic-prevention-backend
 * @Package: com.project.communitymanagement.service.impl
 * @ClassName: TbVisitorServiceImpl
 * @Author: "XGP"
 * @Description:
 * @Date: 2022/03/18 14:56
 * @Version: 1.0
 */
@Service
public class TbVisitorServiceImpl  extends BaseServiceImpl<TbVisitorMapper, TbVisitor> implements TbVisitorService {

    @Autowired
    private TbVisitorMapper tbvisitorMapper;

    @Override
    protected TbVisitorMapper mapper() {
        return tbvisitorMapper;
    }

    @Override
    protected TbVisitor defaultModel() {
        return new TbVisitor();
    }

    @Override
    public int save(TbVisitor tbVisitor) {
        /**审核中*/
        tbVisitor.setStatus(0);
        return super.save(tbVisitor);
    }
}
